package cn.bdqn.demo01;

public class Proxy implements Rent  {

    private Host host;

    public Host getHost() {
        return host;
    }

    public void setHost(Host host) {
        this.host = host;
    }

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    //中介租房子
    public void rent() {
        see();
        host.rent();
        qian();
        fare();
    }

    //看房子
    public void see(){
        System.out.println("中介带你看房子!!!");
    }

    public void qian(){
        System.out.println("和中介签合同...");
    }

    public void fare(){
        System.out.println("中介收中介费!!");
    }
}
